@import "../assets/fonts/icon.scss";
$maxwidth: 150px;

html {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html,body {
  margin: 0;
  width: 100%;
  height: 100%;
}

* {
  box-sizing: border-box;
}

.content {
  width: 100%;
  height: 100%;
}

.board {
  width: 100%;
  max-width: ($maxwidth * 4 + 48);
  /* border: 1px double #d2d2da; */
  margin: 0 auto;
}

.board-title {
  padding: 5px 5px 15px 5px;
}

.btns-title {
  float: right;
  font-size: 26px;
  position: relative;
  top: 11px;
  color: #aca;
}

.btns-title i {
  padding: 4px;
}

.chess-square {
  /* width: 360px;
  height: 360px; */
  position: relative;
  width: 100%;
  margin: 0;
  // display: flex;
  // flex-wrap: wrap;
  text-align: center;
  background-color: rgba(255, 233, 120, 0.603);
  padding: 4px;
  border-radius: 4px;
  // transition: all 0.1s ease;
}

.pieces {
  // display: inline-block;
  position: absolute;
  width: 25%;
  height: 25%;
  max-width: $maxwidth;
  max-height: $maxwidth;
  font-size: 5px;
  padding: 2px;
  transition: all 0.1s ease;
}

.mask {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  background-color: rgba(3, 3, 3, 0.588);
  color: #fff;
  text-align: center;
}

.btns-mask {
  color: #fff;
  left: 50%;
  top: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 26px;
  font-weight: bolder;
  padding: 6px 16px;
}

.btns-mask i {
  font-size: 50px;
  padding: 5px;
  margin: 0 5px;
}

.chessman {
  /* line-height: 90px; */
  height: 100%;
  width: 100%;
  cursor: move;
  margin: 0 auto;
  text-align: center;
  background-color: #aaccaa;
  // transition: all 0.1s ease;
  color: #fff;
  font-size: 36px;
  font-weight: bolder;
  border-radius: 4px;
}

.chessman.active {
  background-color: #54b154;
}

.btn-start {
  color: #fff;
  left: 50%;
  top: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 26px;
  font-weight: bolder;
  padding: 5px 16px;
  background-color: #aaccaa;
  border-radius: 5px;
}

.hide {
  display: none;
  opacity: 0;
}